package User;

import Book.BookList;
import Operation.IOoperation;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-04-13
 * Time: 16:08
 * To BE A Better Person-2020-3-2
 */
public abstract class User {
    public IOoperation[] iOoperation;
    protected String name;
    public User(String name) {
        this.name = name;
    }
    public abstract void menu();

    public void DoOp(int choice, BookList books) {
        iOoperation[choice].work(books);
    }
}
